/*
 * XML Type:  Reinvest
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.Reinvest
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML Reinvest(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class ReinvestImpl extends net.ofx.types.x2003.x04.impl.AbstractInvestmentTransactionImpl implements net.ofx.types.x2003.x04.Reinvest
{
    
    public ReinvestImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName SECID$0 = 
        new javax.xml.namespace.QName("", "SECID");
    private static final javax.xml.namespace.QName INCOMETYPE$2 = 
        new javax.xml.namespace.QName("", "INCOMETYPE");
    private static final javax.xml.namespace.QName TOTAL$4 = 
        new javax.xml.namespace.QName("", "TOTAL");
    private static final javax.xml.namespace.QName SUBACCTSEC$6 = 
        new javax.xml.namespace.QName("", "SUBACCTSEC");
    private static final javax.xml.namespace.QName UNITS$8 = 
        new javax.xml.namespace.QName("", "UNITS");
    private static final javax.xml.namespace.QName UNITPRICE$10 = 
        new javax.xml.namespace.QName("", "UNITPRICE");
    private static final javax.xml.namespace.QName COMMISSION$12 = 
        new javax.xml.namespace.QName("", "COMMISSION");
    private static final javax.xml.namespace.QName TAXES$14 = 
        new javax.xml.namespace.QName("", "TAXES");
    private static final javax.xml.namespace.QName FEES$16 = 
        new javax.xml.namespace.QName("", "FEES");
    private static final javax.xml.namespace.QName LOAD$18 = 
        new javax.xml.namespace.QName("", "LOAD");
    private static final javax.xml.namespace.QName TAXEXEMPT$20 = 
        new javax.xml.namespace.QName("", "TAXEXEMPT");
    private static final javax.xml.namespace.QName CURRENCY$22 = 
        new javax.xml.namespace.QName("", "CURRENCY");
    private static final javax.xml.namespace.QName ORIGCURRENCY$24 = 
        new javax.xml.namespace.QName("", "ORIGCURRENCY");
    private static final javax.xml.namespace.QName INV401KSOURCE$26 = 
        new javax.xml.namespace.QName("", "INV401KSOURCE");
    
    
    /**
     * Gets the "SECID" element
     */
    public net.ofx.types.x2003.x04.SecurityId getSECID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.SecurityId target = null;
            target = (net.ofx.types.x2003.x04.SecurityId)get_store().find_element_user(SECID$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "SECID" element
     */
    public void setSECID(net.ofx.types.x2003.x04.SecurityId secid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.SecurityId target = null;
            target = (net.ofx.types.x2003.x04.SecurityId)get_store().find_element_user(SECID$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.SecurityId)get_store().add_element_user(SECID$0);
            }
            target.set(secid);
        }
    }
    
    /**
     * Appends and returns a new empty "SECID" element
     */
    public net.ofx.types.x2003.x04.SecurityId addNewSECID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.SecurityId target = null;
            target = (net.ofx.types.x2003.x04.SecurityId)get_store().add_element_user(SECID$0);
            return target;
        }
    }
    
    /**
     * Gets the "INCOMETYPE" element
     */
    public net.ofx.types.x2003.x04.IncomeEnum.Enum getINCOMETYPE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(INCOMETYPE$2, 0);
            if (target == null)
            {
                return null;
            }
            return (net.ofx.types.x2003.x04.IncomeEnum.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "INCOMETYPE" element
     */
    public net.ofx.types.x2003.x04.IncomeEnum xgetINCOMETYPE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.IncomeEnum target = null;
            target = (net.ofx.types.x2003.x04.IncomeEnum)get_store().find_element_user(INCOMETYPE$2, 0);
            return target;
        }
    }
    
    /**
     * Sets the "INCOMETYPE" element
     */
    public void setINCOMETYPE(net.ofx.types.x2003.x04.IncomeEnum.Enum incometype)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(INCOMETYPE$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(INCOMETYPE$2);
            }
            target.setEnumValue(incometype);
        }
    }
    
    /**
     * Sets (as xml) the "INCOMETYPE" element
     */
    public void xsetINCOMETYPE(net.ofx.types.x2003.x04.IncomeEnum incometype)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.IncomeEnum target = null;
            target = (net.ofx.types.x2003.x04.IncomeEnum)get_store().find_element_user(INCOMETYPE$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.IncomeEnum)get_store().add_element_user(INCOMETYPE$2);
            }
            target.set(incometype);
        }
    }
    
    /**
     * Gets the "TOTAL" element
     */
    public java.lang.String getTOTAL()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TOTAL$4, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "TOTAL" element
     */
    public net.ofx.types.x2003.x04.AmountType xgetTOTAL()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AmountType target = null;
            target = (net.ofx.types.x2003.x04.AmountType)get_store().find_element_user(TOTAL$4, 0);
            return target;
        }
    }
    
    /**
     * Sets the "TOTAL" element
     */
    public void setTOTAL(java.lang.String total)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TOTAL$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(TOTAL$4);
            }
            target.setStringValue(total);
        }
    }
    
    /**
     * Sets (as xml) the "TOTAL" element
     */
    public void xsetTOTAL(net.ofx.types.x2003.x04.AmountType total)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AmountType target = null;
            target = (net.ofx.types.x2003.x04.AmountType)get_store().find_element_user(TOTAL$4, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.AmountType)get_store().add_element_user(TOTAL$4);
            }
            target.set(total);
        }
    }
    
    /**
     * Gets the "SUBACCTSEC" element
     */
    public net.ofx.types.x2003.x04.SubAccountEnum.Enum getSUBACCTSEC()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SUBACCTSEC$6, 0);
            if (target == null)
            {
                return null;
            }
            return (net.ofx.types.x2003.x04.SubAccountEnum.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "SUBACCTSEC" element
     */
    public net.ofx.types.x2003.x04.SubAccountEnum xgetSUBACCTSEC()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.SubAccountEnum target = null;
            target = (net.ofx.types.x2003.x04.SubAccountEnum)get_store().find_element_user(SUBACCTSEC$6, 0);
            return target;
        }
    }
    
    /**
     * Sets the "SUBACCTSEC" element
     */
    public void setSUBACCTSEC(net.ofx.types.x2003.x04.SubAccountEnum.Enum subacctsec)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SUBACCTSEC$6, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SUBACCTSEC$6);
            }
            target.setEnumValue(subacctsec);
        }
    }
    
    /**
     * Sets (as xml) the "SUBACCTSEC" element
     */
    public void xsetSUBACCTSEC(net.ofx.types.x2003.x04.SubAccountEnum subacctsec)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.SubAccountEnum target = null;
            target = (net.ofx.types.x2003.x04.SubAccountEnum)get_store().find_element_user(SUBACCTSEC$6, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.SubAccountEnum)get_store().add_element_user(SUBACCTSEC$6);
            }
            target.set(subacctsec);
        }
    }
    
    /**
     * Gets the "UNITS" element
     */
    public java.lang.String getUNITS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(UNITS$8, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "UNITS" element
     */
    public net.ofx.types.x2003.x04.QuantityType xgetUNITS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.QuantityType target = null;
            target = (net.ofx.types.x2003.x04.QuantityType)get_store().find_element_user(UNITS$8, 0);
            return target;
        }
    }
    
    /**
     * Sets the "UNITS" element
     */
    public void setUNITS(java.lang.String units)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(UNITS$8, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(UNITS$8);
            }
            target.setStringValue(units);
        }
    }
    
    /**
     * Sets (as xml) the "UNITS" element
     */
    public void xsetUNITS(net.ofx.types.x2003.x04.QuantityType units)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.QuantityType target = null;
            target = (net.ofx.types.x2003.x04.QuantityType)get_store().find_element_user(UNITS$8, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.QuantityType)get_store().add_element_user(UNITS$8);
            }
            target.set(units);
        }
    }
    
    /**
     * Gets the "UNITPRICE" element
     */
    public java.lang.String getUNITPRICE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(UNITPRICE$10, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "UNITPRICE" element
     */
    public net.ofx.types.x2003.x04.UnitPriceType xgetUNITPRICE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.UnitPriceType target = null;
            target = (net.ofx.types.x2003.x04.UnitPriceType)get_store().find_element_user(UNITPRICE$10, 0);
            return target;
        }
    }
    
    /**
     * Sets the "UNITPRICE" element
     */
    public void setUNITPRICE(java.lang.String unitprice)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(UNITPRICE$10, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(UNITPRICE$10);
            }
            target.setStringValue(unitprice);
        }
    }
    
    /**
     * Sets (as xml) the "UNITPRICE" element
     */
    public void xsetUNITPRICE(net.ofx.types.x2003.x04.UnitPriceType unitprice)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.UnitPriceType target = null;
            target = (net.ofx.types.x2003.x04.UnitPriceType)get_store().find_element_user(UNITPRICE$10, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.UnitPriceType)get_store().add_element_user(UNITPRICE$10);
            }
            target.set(unitprice);
        }
    }
    
    /**
     * Gets the "COMMISSION" element
     */
    public java.lang.String getCOMMISSION()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(COMMISSION$12, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "COMMISSION" element
     */
    public net.ofx.types.x2003.x04.PositiveAmountType xgetCOMMISSION()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PositiveAmountType target = null;
            target = (net.ofx.types.x2003.x04.PositiveAmountType)get_store().find_element_user(COMMISSION$12, 0);
            return target;
        }
    }
    
    /**
     * True if has "COMMISSION" element
     */
    public boolean isSetCOMMISSION()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(COMMISSION$12) != 0;
        }
    }
    
    /**
     * Sets the "COMMISSION" element
     */
    public void setCOMMISSION(java.lang.String commission)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(COMMISSION$12, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(COMMISSION$12);
            }
            target.setStringValue(commission);
        }
    }
    
    /**
     * Sets (as xml) the "COMMISSION" element
     */
    public void xsetCOMMISSION(net.ofx.types.x2003.x04.PositiveAmountType commission)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PositiveAmountType target = null;
            target = (net.ofx.types.x2003.x04.PositiveAmountType)get_store().find_element_user(COMMISSION$12, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.PositiveAmountType)get_store().add_element_user(COMMISSION$12);
            }
            target.set(commission);
        }
    }
    
    /**
     * Unsets the "COMMISSION" element
     */
    public void unsetCOMMISSION()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(COMMISSION$12, 0);
        }
    }
    
    /**
     * Gets the "TAXES" element
     */
    public java.lang.String getTAXES()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TAXES$14, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "TAXES" element
     */
    public net.ofx.types.x2003.x04.PositiveAmountType xgetTAXES()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PositiveAmountType target = null;
            target = (net.ofx.types.x2003.x04.PositiveAmountType)get_store().find_element_user(TAXES$14, 0);
            return target;
        }
    }
    
    /**
     * True if has "TAXES" element
     */
    public boolean isSetTAXES()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(TAXES$14) != 0;
        }
    }
    
    /**
     * Sets the "TAXES" element
     */
    public void setTAXES(java.lang.String taxes)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TAXES$14, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(TAXES$14);
            }
            target.setStringValue(taxes);
        }
    }
    
    /**
     * Sets (as xml) the "TAXES" element
     */
    public void xsetTAXES(net.ofx.types.x2003.x04.PositiveAmountType taxes)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PositiveAmountType target = null;
            target = (net.ofx.types.x2003.x04.PositiveAmountType)get_store().find_element_user(TAXES$14, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.PositiveAmountType)get_store().add_element_user(TAXES$14);
            }
            target.set(taxes);
        }
    }
    
    /**
     * Unsets the "TAXES" element
     */
    public void unsetTAXES()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(TAXES$14, 0);
        }
    }
    
    /**
     * Gets the "FEES" element
     */
    public java.lang.String getFEES()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FEES$16, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "FEES" element
     */
    public net.ofx.types.x2003.x04.PositiveAmountType xgetFEES()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PositiveAmountType target = null;
            target = (net.ofx.types.x2003.x04.PositiveAmountType)get_store().find_element_user(FEES$16, 0);
            return target;
        }
    }
    
    /**
     * True if has "FEES" element
     */
    public boolean isSetFEES()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(FEES$16) != 0;
        }
    }
    
    /**
     * Sets the "FEES" element
     */
    public void setFEES(java.lang.String fees)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FEES$16, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(FEES$16);
            }
            target.setStringValue(fees);
        }
    }
    
    /**
     * Sets (as xml) the "FEES" element
     */
    public void xsetFEES(net.ofx.types.x2003.x04.PositiveAmountType fees)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PositiveAmountType target = null;
            target = (net.ofx.types.x2003.x04.PositiveAmountType)get_store().find_element_user(FEES$16, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.PositiveAmountType)get_store().add_element_user(FEES$16);
            }
            target.set(fees);
        }
    }
    
    /**
     * Unsets the "FEES" element
     */
    public void unsetFEES()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(FEES$16, 0);
        }
    }
    
    /**
     * Gets the "LOAD" element
     */
    public java.lang.String getLOAD()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LOAD$18, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "LOAD" element
     */
    public net.ofx.types.x2003.x04.PositiveAmountType xgetLOAD()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PositiveAmountType target = null;
            target = (net.ofx.types.x2003.x04.PositiveAmountType)get_store().find_element_user(LOAD$18, 0);
            return target;
        }
    }
    
    /**
     * True if has "LOAD" element
     */
    public boolean isSetLOAD()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(LOAD$18) != 0;
        }
    }
    
    /**
     * Sets the "LOAD" element
     */
    public void setLOAD(java.lang.String load)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LOAD$18, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(LOAD$18);
            }
            target.setStringValue(load);
        }
    }
    
    /**
     * Sets (as xml) the "LOAD" element
     */
    public void xsetLOAD(net.ofx.types.x2003.x04.PositiveAmountType load)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PositiveAmountType target = null;
            target = (net.ofx.types.x2003.x04.PositiveAmountType)get_store().find_element_user(LOAD$18, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.PositiveAmountType)get_store().add_element_user(LOAD$18);
            }
            target.set(load);
        }
    }
    
    /**
     * Unsets the "LOAD" element
     */
    public void unsetLOAD()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(LOAD$18, 0);
        }
    }
    
    /**
     * Gets the "TAXEXEMPT" element
     */
    public net.ofx.types.x2003.x04.BooleanType.Enum getTAXEXEMPT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TAXEXEMPT$20, 0);
            if (target == null)
            {
                return null;
            }
            return (net.ofx.types.x2003.x04.BooleanType.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "TAXEXEMPT" element
     */
    public net.ofx.types.x2003.x04.BooleanType xgetTAXEXEMPT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BooleanType target = null;
            target = (net.ofx.types.x2003.x04.BooleanType)get_store().find_element_user(TAXEXEMPT$20, 0);
            return target;
        }
    }
    
    /**
     * True if has "TAXEXEMPT" element
     */
    public boolean isSetTAXEXEMPT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(TAXEXEMPT$20) != 0;
        }
    }
    
    /**
     * Sets the "TAXEXEMPT" element
     */
    public void setTAXEXEMPT(net.ofx.types.x2003.x04.BooleanType.Enum taxexempt)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TAXEXEMPT$20, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(TAXEXEMPT$20);
            }
            target.setEnumValue(taxexempt);
        }
    }
    
    /**
     * Sets (as xml) the "TAXEXEMPT" element
     */
    public void xsetTAXEXEMPT(net.ofx.types.x2003.x04.BooleanType taxexempt)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BooleanType target = null;
            target = (net.ofx.types.x2003.x04.BooleanType)get_store().find_element_user(TAXEXEMPT$20, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.BooleanType)get_store().add_element_user(TAXEXEMPT$20);
            }
            target.set(taxexempt);
        }
    }
    
    /**
     * Unsets the "TAXEXEMPT" element
     */
    public void unsetTAXEXEMPT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(TAXEXEMPT$20, 0);
        }
    }
    
    /**
     * Gets the "CURRENCY" element
     */
    public net.ofx.types.x2003.x04.Currency getCURRENCY()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.Currency target = null;
            target = (net.ofx.types.x2003.x04.Currency)get_store().find_element_user(CURRENCY$22, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "CURRENCY" element
     */
    public boolean isSetCURRENCY()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(CURRENCY$22) != 0;
        }
    }
    
    /**
     * Sets the "CURRENCY" element
     */
    public void setCURRENCY(net.ofx.types.x2003.x04.Currency currency)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.Currency target = null;
            target = (net.ofx.types.x2003.x04.Currency)get_store().find_element_user(CURRENCY$22, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.Currency)get_store().add_element_user(CURRENCY$22);
            }
            target.set(currency);
        }
    }
    
    /**
     * Appends and returns a new empty "CURRENCY" element
     */
    public net.ofx.types.x2003.x04.Currency addNewCURRENCY()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.Currency target = null;
            target = (net.ofx.types.x2003.x04.Currency)get_store().add_element_user(CURRENCY$22);
            return target;
        }
    }
    
    /**
     * Unsets the "CURRENCY" element
     */
    public void unsetCURRENCY()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(CURRENCY$22, 0);
        }
    }
    
    /**
     * Gets the "ORIGCURRENCY" element
     */
    public net.ofx.types.x2003.x04.Currency getORIGCURRENCY()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.Currency target = null;
            target = (net.ofx.types.x2003.x04.Currency)get_store().find_element_user(ORIGCURRENCY$24, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "ORIGCURRENCY" element
     */
    public boolean isSetORIGCURRENCY()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(ORIGCURRENCY$24) != 0;
        }
    }
    
    /**
     * Sets the "ORIGCURRENCY" element
     */
    public void setORIGCURRENCY(net.ofx.types.x2003.x04.Currency origcurrency)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.Currency target = null;
            target = (net.ofx.types.x2003.x04.Currency)get_store().find_element_user(ORIGCURRENCY$24, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.Currency)get_store().add_element_user(ORIGCURRENCY$24);
            }
            target.set(origcurrency);
        }
    }
    
    /**
     * Appends and returns a new empty "ORIGCURRENCY" element
     */
    public net.ofx.types.x2003.x04.Currency addNewORIGCURRENCY()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.Currency target = null;
            target = (net.ofx.types.x2003.x04.Currency)get_store().add_element_user(ORIGCURRENCY$24);
            return target;
        }
    }
    
    /**
     * Unsets the "ORIGCURRENCY" element
     */
    public void unsetORIGCURRENCY()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(ORIGCURRENCY$24, 0);
        }
    }
    
    /**
     * Gets the "INV401KSOURCE" element
     */
    public net.ofx.types.x2003.x04.Investment401KSourceEnum.Enum getINV401KSOURCE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(INV401KSOURCE$26, 0);
            if (target == null)
            {
                return null;
            }
            return (net.ofx.types.x2003.x04.Investment401KSourceEnum.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "INV401KSOURCE" element
     */
    public net.ofx.types.x2003.x04.Investment401KSourceEnum xgetINV401KSOURCE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.Investment401KSourceEnum target = null;
            target = (net.ofx.types.x2003.x04.Investment401KSourceEnum)get_store().find_element_user(INV401KSOURCE$26, 0);
            return target;
        }
    }
    
    /**
     * True if has "INV401KSOURCE" element
     */
    public boolean isSetINV401KSOURCE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(INV401KSOURCE$26) != 0;
        }
    }
    
    /**
     * Sets the "INV401KSOURCE" element
     */
    public void setINV401KSOURCE(net.ofx.types.x2003.x04.Investment401KSourceEnum.Enum inv401KSOURCE)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(INV401KSOURCE$26, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(INV401KSOURCE$26);
            }
            target.setEnumValue(inv401KSOURCE);
        }
    }
    
    /**
     * Sets (as xml) the "INV401KSOURCE" element
     */
    public void xsetINV401KSOURCE(net.ofx.types.x2003.x04.Investment401KSourceEnum inv401KSOURCE)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.Investment401KSourceEnum target = null;
            target = (net.ofx.types.x2003.x04.Investment401KSourceEnum)get_store().find_element_user(INV401KSOURCE$26, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.Investment401KSourceEnum)get_store().add_element_user(INV401KSOURCE$26);
            }
            target.set(inv401KSOURCE);
        }
    }
    
    /**
     * Unsets the "INV401KSOURCE" element
     */
    public void unsetINV401KSOURCE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(INV401KSOURCE$26, 0);
        }
    }
}
